]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
StIcon: fill the structure corretly in _init
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 9 Dec 2010 17:01:27 +0000 (18:01 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 9 Dec 2010 21:27:32 +0000 (22:27 +0100)
GSlice already fills with zeros when allocating, but we need to
set the shadow_material field appropriately.

https://bugzilla.gnome.org/show_bug.cgi?id=634814

src/st/st-icon.c

index 9cf2993a74412d7e42a2eeeeafca6a19d19ed8be..7235dc1a8da766deaab47f1a78e60606ba67094e 100644 (file)
@@ -340,12 +340,11 @@ st_icon_init (StIcon *self)
 {
   self->priv = ST_ICON_GET_PRIVATE (self);
 
-  self->priv->gicon = NULL;
   self->priv->icon_size = DEFAULT_ICON_SIZE;
   self->priv->prop_icon_size = -1;
   self->priv->icon_type = DEFAULT_ICON_TYPE;
 
-  self->priv->icon_texture = COGL_INVALID_HANDLE;
+  self->priv->shadow_material = COGL_INVALID_HANDLE;
   self->priv->shadow_width = -1;
   self->priv->shadow_height = -1;
 }